﻿using System;
using GeoAPI.Geometries;
using YJKGridTopologyCal.Planargraph;

namespace YJKGridTopologyCal.Operation.Polygonize
{
	public class PolygonizeDirectedEdge : DirectedEdge
	{
		public PolygonizeDirectedEdge(Node from, Node to, Coordinate directionPt, bool edgeDirection) : base(from, to, directionPt, edgeDirection)
		{
		}

		public long Label
		{
			get
			{
				return this.label;
			}
			set
			{
				this.label = value;
			}
		}

		public PolygonizeDirectedEdge Next { get; set; }

		public bool IsInRing
		{
			get
			{
				return this.Ring != null;
			}
		}

		public EdgeRing Ring { get; set; }

		private long label = -1L;
	}
}
